﻿@model System.String
@{
    ViewData["Title"] = "Home Page";
    Layout = User.Identity.IsAuthenticated ? Von.Web.Framework.Runtime.adminLayoutName : Von.Web.Framework.Runtime.defaultLayoutName;
    Von.Web.Tasks.SliderTask sliderTask = new Von.Web.Tasks.SliderTask();
}
@Html.RawExtend("IndexHeader.html")
<style>
    .von-section {
        width: 100%;
        border-radius: 5%;
        margin: 5px;
    }

    .von-section-prifix {
        list-style: circle;
        margin: 5px;
        background-color: #d6e1eb;
    }

    .service-box {
        background: rgb(245, 245, 245);
        margin-right: 3rem;
        margin-bottom: 3rem;
        color: #1e1e1e;
        padding: 2.5rem 1.3rem;
        border-radius: 1rem;
        box-shadow: 5px 10px 10px 0px rgb(216 216 216 / 78%);
    }

    .ico-circle {
        height: 100px;
        width: 100px;
        font-size: 6rem;
        border-radius: 50%;
        line-height: 1.55;
        margin: 0 auto;
        text-align: center;
        box-shadow: 0 0 0 10px #0078ff;
        display: block;
    }

    .bg-image {
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        background-position: center center;
    }

    .overlay-mf {
        background-color: #0078ff;
        position: absolute;
        top: 0;
        left: 0px;
        padding: 0;
        height: 100%;
        width: 100%;
        opacity: .7;
    }

    .paralax-mf {
        position: relative;
        padding: 8rem 0;
    }
</style>
<!-- Begin of slide -->
<div class="slider">
    <ul class="rslides" id="slider">
        @{
            List<Von.Web.Structs.SliderInfo> lstSlider = await sliderTask.List<Von.Web.Structs.SliderInfo>("主页广告");
            foreach (Von.Web.Structs.SliderInfo slider in lstSlider)
            {
                <li>
                    @Html.Raw(await sliderTask.GetContent(slider.ID))
                </li>
            }
        }
    </ul>
</div>
<!-- End of slide -->
<!-- Begin of section -->
@{
    List<Von.Web.Structs.SliderInfo> lstSection = await sliderTask.List<Von.Web.Structs.SliderInfo>("主页内容");
    foreach (Von.Web.Structs.SliderInfo section in lstSection)
    {
        @Html.Raw(await sliderTask.GetContent(section.ID))
    }
}
<!-- End of section -->
<!-- For-Banner -->
@Html.Import(Von.Web.Html.EImportSection.BodyTrailler, "slides_js", @<script src="/js/responsiveslides.min.js"></script>)
@Html.Import(Von.Web.Html.EImportSection.BodyTrailler, "slides_css", @<link href="/css/responsiveslides.min.css" rel="stylesheet" />)
<!-- For-Banner -->
@Html.Import(Von.Web.Html.EImportSection.BodyTrailler, "IndexInit",
    @<script>
         $(function () { $("#slider").responsiveSlides({ auto: true, manualControls: '#slider3-pager' }); });
    </script>
)
